package com.example.store;

import com.example.service.Tenant;
import com.example.service.TenantAwareDataSourceFactory;

import javax.cache.configuration.Factory;

public class DeviceTypeCacheStoreFactory implements Factory<DeviceTypeCacheStore> {

    private Tenant tenant;

    public DeviceTypeCacheStoreFactory(Tenant tenant){
        this.tenant = tenant;
    }


    @Override
    public DeviceTypeCacheStore create() {
        return new DeviceTypeCacheStore(tenant);
    }
}
